const express = require('express');
const router = express.Router()
const pool = require('../../utils/pool')

router.post('/addMerchant',(req,res,next)=>{
  const {me_name,certif} = req.body 
  let sql = `insert into merchant_info set me_name=?,certif=?`
  pool.query(sql,[me_name,certif],(err,r)=>{
    res.send({code: 200, msg: '添加成功'})
  })
})

router.post('/addMe_user',(req,res,next)=>{
  const {ident,muser,mpwd,access,meid} = req.body
  let sql = 'insert into merchant set ident=?,muser=?,'
  let sql1 ='select id ' 

})